package com.ruoyi.test.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.test.mapper.WarehousemanagementMapper;
import com.ruoyi.test.domain.Warehousemanagement;
import com.ruoyi.test.service.IWarehousemanagementService;

/**
 * 仓库管理Service业务层处理
 * 
 * @author 22082109czy
 * @date 2025-07-07
 */
@Service
public class WarehousemanagementServiceImpl implements IWarehousemanagementService 
{
    @Autowired
    private WarehousemanagementMapper warehousemanagementMapper;

    /**
     * 查询仓库管理
     * 
     * @param id 仓库管理主键
     * @return 仓库管理
     */
    @Override
    public Warehousemanagement selectWarehousemanagementById(Long id)
    {
        return warehousemanagementMapper.selectWarehousemanagementById(id);
    }

    /**
     * 查询仓库管理列表
     * 
     * @param warehousemanagement 仓库管理
     * @return 仓库管理
     */
    @Override
    public List<Warehousemanagement> selectWarehousemanagementList(Warehousemanagement warehousemanagement)
    {
        return warehousemanagementMapper.selectWarehousemanagementList(warehousemanagement);
    }

    /**
     * 新增仓库管理
     * 
     * @param warehousemanagement 仓库管理
     * @return 结果
     */
    @Override
    public int insertWarehousemanagement(Warehousemanagement warehousemanagement)
    {
        return warehousemanagementMapper.insertWarehousemanagement(warehousemanagement);
    }

    /**
     * 修改仓库管理
     * 
     * @param warehousemanagement 仓库管理
     * @return 结果
     */
    @Override
    public int updateWarehousemanagement(Warehousemanagement warehousemanagement)
    {
        return warehousemanagementMapper.updateWarehousemanagement(warehousemanagement);
    }

    /**
     * 批量删除仓库管理
     * 
     * @param ids 需要删除的仓库管理主键
     * @return 结果
     */
    @Override
    public int deleteWarehousemanagementByIds(Long[] ids)
    {
        return warehousemanagementMapper.deleteWarehousemanagementByIds(ids);
    }

    /**
     * 删除仓库管理信息
     * 
     * @param id 仓库管理主键
     * @return 结果
     */
    @Override
    public int deleteWarehousemanagementById(Long id)
    {
        return warehousemanagementMapper.deleteWarehousemanagementById(id);
    }
}
